package entity

import (
	"time"

	"shqsoft.cn/pas3ui/base"
)

type DictMidoType struct {
	ITID int    `gorm:"column:ITID;primary_key;"`
	ITNO string `gorm:"column:ITNO"`
	ITNM string `gorm:"column:ITNM"`
	TPID int    `gorm:"column:TPID"`
	TPNM string `gorm:"column:TPNM"`
}

func (DictMidoType) TableName() string {
	return "DICT_MIDO_TYPE"
}
func DictMidoTypeEF() base.EntityFunc {
	return func() interface{} {
		entity := DictMidoType{}
		return &entity
	}
}
func DictMidoTypeESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []DictMidoType
		return &entities
	}
}

//CompZsFlowChNew
type CompZsFlowChNew struct {
	JLID    int       `gorm:"column:JLID;primary_key;"`
	CUNM    string    `gorm:"column:CUNM"`
	ITNO    string    `gorm:"column:ITNO"`
	ITNM    string    `gorm:"column:ITNM"`
	DATA_DT time.Time `gorm:"column:DATA_DT"`
	CYNM    string    `gorm:"column:CYNM"`
	ZSJE    float64   `gorm:"column:ZSJE"`
	TPID    int       `gorm:"column:TPID"`
}

//TableName
func (CompZsFlowChNew) TableName() string {
	return "V_CM_BIZ_FEE_SUM_M_NEW"
}
func CompZsFlowChNewEF() base.EntityFunc {
	return func() interface{} {
		entity := CompZsFlowChNew{}
		return &entity
	}
}
func CompZsFlowChNewESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []CompZsFlowChNew
		return &entities
	}
}

func init() {
	base.DaoPoolObj.Put("DictMidoType", base.NewDefaultDao(DictMidoTypeEF(), DictMidoTypeESF(), nil, "ch"))
	base.DaoPoolObj.Put("CompZsFlowChNew", base.NewDefaultDao(CompZsFlowChNewEF(), CompZsFlowChNewESF(), nil, "ch"))
}
